#include <stdio.h>

int main(int argc, const char *argv[])
{
    char tmp[16] = {0};

    unsigned long  n;

    scanf("%lu", &n);
    printf("%lu\n", n);

    sprintf(tmp, "%05lu", n);

    printf("%s\n", tmp);

    return 0;
}
